package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

//FileOutputStream 文件输出流类
public class FOSDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("./fos.dat");
        fos.write(30);
        fos.write(0);
        System.out.println("写出完毕");
        //关闭流
        fos.close();
    }

}
